import java.io.*; 
import java.util.*; 
public class TextFileReader
{
    public static void main(String[] args) throws IOException
    {     
        Scanner inFile = new Scanner(new FileReader("README.txt"));
        int count = 0;
        int index = 0;
        String[] names = new String[151];
        int[] hp = new int[151];
        int[] attack = new int[151];
        int[] defense = new int[151];
        int[] speed = new int[151];
        int[] special = new int[151];
        while (inFile.hasNext())
        {
            String line = inFile.nextLine();
            if(count == 0)
            {
                names[index] = line;
            }
            if(count == 1)
            {
                hp[index] = Integer.parseInt(line);               
            }
            if(count == 2)
            {
                attack[index] = Integer.parseInt(line);
            }
            if(count == 3)
            {
                defense[index] = Integer.parseInt(line);                
            }
            if(count == 4)
            {
                speed[index] = Integer.parseInt(line);              
            }
            if(count == 5)
            {
                special[index] = Integer.parseInt(line);         
            }
            if(count == 6)
            {
                count = -1;
                index++;
            }
            count++;
        }
        inFile.close();

        PrintWriter outFile = new PrintWriter (new File("names.txt"));
        for (int loop = 0; loop <= 150; loop++)
        {
            outFile.println(names[loop]);
            System.out.println("Looping...");
        }
        outFile.close();       
        
        System.out.println("Done!");
    }
}